package com.fuyao.cloud.flowable.vo;

import com.fuyao.cloud.admin.api.entity.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ActorInstance implements Serializable {

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "真实姓名")
    private String name;

    @ApiModelProperty(value = "所属部门ID")
    private Long deptId;

    @ApiModelProperty(value = "部门名称")
    private String ouName;

    @ApiModelProperty(value = "部门全名称")
    private String ouFullName;

    @ApiModelProperty(value = "部门全编码")
    private String ouFullCode;

    public ActorInstance(SysUser user) {
        this.userId = user.getUserId();
        this.username = user.getUsername();
        this.deptId = user.getDeptId();
        this.ouName = user.getDeptName();
        this.name = user.getName();
    }

}
